package com.kfm.spring.demo;

import javax.servlet.ServletContainerInitializer;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.HandlesTypes;
import java.util.Set;

@HandlesTypes(AppInitializer.class)
public class MyServletContainerInitializer implements ServletContainerInitializer {

    public MyServletContainerInitializer(){}

    @Override
    public void onStartup(Set<Class<?>> c, ServletContext ctx) throws ServletException {
        System.out.println("MyServletContainerInitializer.onStartup");
        System.out.println(c);
    }
}
